<%@ page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>

<%@ taglib uri="http://displaytag.sf.net" prefix="display"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib prefix="s" uri="/struts-tags"%>

<%
	String path = request.getContextPath();
	String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

	<s:form method="post" action="addSearchToFavoriteSearch.htm" theme="simple">
		<table width="100%">
			<tr>
				<td>
					<div class="blue-text16" style="margin: 0px 0px 0px 0px">
						<s:text name="addSearchToFavorite.favoriteSearch" />
					</div>
					<div class="header-separator-bg" style="margin: 10px 5px 0px 0px"></div>
				</td>
			</tr>
			<tr>
				<td>
					<table class="common-text" width="100%">
						<tr>
							<td colspan="2">
								<s:actionerror cssClass="error-text"/>
								<s:actionerror cssClass="error-text"/>
								<s:fielderror cssClass="error-text"/>
							</td>
						</tr>
						<tr>
							<td width="200">
								<s:text name="smartsearch.para2" />
							</td>
							<td>
								<s:textfield name="textContent" size="50" value="%{userFavoritesSearch.name}" cssClass="textfield" />
							</td>
						</tr>
						<tr>
							<td width="200">
								<s:text name="smartsearch.category" />
							</td>

							<td>
								<table border="0" cellspacing="0" cellpadding="0">
									<tr>
										<td><img src="images/middle/btn-grey-left1.gif" alt=" " width="6" height="23" /></td>
										<td class="btn-grey-middle1 "><input type="button" onclick="PPPCC=window.open('<%= basePath + "ajax/showCategoryTreeAction.htm" %>','CurrencyConverter','width=600,height=400,scrollbars=1,resizable=0');PPPCC.focus()" name="Select Category" value="<s:text name="addToFavoriteShops.selectCategory" />" class="submit-btn-common" /></td>
										<td><img src="images/middle/btn-grey-right1.gif" alt=" " width="6" height="23" /></td>
									</tr>
								</table>
							</td>
						</tr>
						<tr>
							<td width="200" nowrap="nowrap">
								<s:text name="tree_selected_category" />
							</td>
							<td>
								<div id="selectedCatId"></div>
							</td>

						</tr>
						<tr>
							<td align="left" width="200">
								<s:text name="lable.registration.region" />
							</td>
							<td colspan="3" align="left">
								<table border="0" cellspacing="0" cellpadding="0">
									<tr>
										<td><img src="images/middle/btn-grey-left1.gif" alt=" " width="6" height="23" /></td>
										<td class="btn-grey-middle1 "><input type="button" onclick="PPPCC=window.open('<%= basePath + "ajax/showDynamicRegionTreeAction.htm" %>','CurrencyConverter','width=600,height=400,scrollbars=1,resizable=0');PPPCC.focus()" name="Select Region" value="<s:text name="addToFavoriteShops.selectRegion" />" class="submit-btn-common" /></td>
										<td><img src="images/middle/btn-grey-right1.gif" alt=" " width="6" height="23" /></td>
									</tr>
								</table>
							</td>
						</tr>
						<tr>
							<td width="200" nowrap="nowrap">
								<s:text name="addToFavoriteShops.selectedRegion" />
							</td>
							<td>
								<div id="selectedLocId"></div>
							</td>
						</tr>
						<tr>
							<td colspan="2">
								<s:text name="addCompanyProfileToFavorite.locationinternational" />
							</td>

						</tr>
						<tr>
							<td valign="top" width="200">
								<s:text name="smartsearch.location" />
							</td>

							<td>
								<s:textfield value="%{userFavoritesSearch.location}" name="location" cssClass="textfield" />
								<s:text name="smartsearch.sub" />
							</td>
						</tr>
						<tr>
							<td>
								<div class="common-text" style="margin: 0px 0px 10px 0px">
									<table border="0" cellspacing="0" cellpadding="0">
										<tr>
											<td><img src="images/top/btn-grey-left.gif" alt=" " width="6" height="23" /></td>
											<td class="btn-grey-middle"><s:submit  cssClass="submit-btn-common" value="%{getText('addToFavoriteShops.link')}" /></td>
											<td><img src="images/top/btn-grey-right.gif" alt=" " width="6" height="23" /></td>
										</tr>
									</table>
								</div>
							</td>
						</tr>
						<tr>
							<td width="200">
								<s:text name="addToFavoriteSearch.msg">
									<s:param name="value" value="%{count}"></s:param>
								</s:text>
							</td>
							<td>
								<a href="favoriteSearches.htm"><b><s:text name="addSearchToFavorite.para1" /></b> </a>
							</td>
						</tr>
					</table>
				</td>
			</tr>
		</table>
		<s:hidden name="userFavoritesSearch.id" value="%{userFavoritesSearch.id}"></s:hidden>
	</s:form>
